package com.amigo.online.provider.merchant.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;


@FeignClient(name = "amigo-online-provider-user")
public interface UserFeignService {

    @RequestMapping(value = "/user/token/{token}", method = RequestMethod.GET)
    public ResponseEntity<Response> getUserInfoByToken(@PathVariable("token") String token);

    @RequestMapping(value = "/user/{userId}", method = RequestMethod.GET)
    public ResponseEntity<Response> getUserInfo(@PathVariable("userId") Long userId);

}
